package com.lb.entity;

/**
 * @ClassName String
 * @Author LB
 * @Date 2021/12/27 9:31
 **/
public class Student {
    //双亲委派机制：安全
    //APP-->EXC-->BOOT(最终执行)

    @Override
    public String toString(){
        return "hello";
    }

    public static void main(String[] args) {
        //返回 JVM 堆大小
//        long initalMemory = Runtime.getRuntime().totalMemory() / 1024 /1024;
//        //返回 JVM 堆的最大内存
//        long maxMemory = Runtime.getRuntime().maxMemory() / 1024 /1024;
//
//        System.out.println("-Xms : "+initalMemory + "M");
//        System.out.println("-Xmx : "+maxMemory + "M");
//
//        System.out.println("系统内存大小：" + initalMemory * 64 / 1024 + "G");
//        System.out.println("系统内存大小：" + maxMemory * 4 / 1024 + "G");

        String a = "lkasdsadladjsaddlkdjasadldjsadkls";
        String b = "sad";
        System.out.println(a.contains(b));
    }
}